import 'core-js/es'
import 'mutation-observer'
import 'react-app-polyfill/ie9'
import 'react-app-polyfill/stable'
import React from 'react'
import ReactDOM from 'react-dom/client'
import './main.less'
import Routers from './router/Routers'
import { Provider } from 'react-redux'
import store, { persistor } from './redux/store'
import { PersistGate } from 'redux-persist/lib/integration/react'
import moment from 'moment'
import zhCN from 'antd/lib/locale/zh_CN'
import 'moment/dist/locale/zh-cn'
import { ConfigProvider } from 'antd'
import '@wangeditor/editor/dist/css/style.css'
// import TestWaterMark from '@components/TestWaterMark/Index'
moment.locale('zh-cn')

ReactDOM.createRoot(document.getElementById('root')).render(
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        {/* <TestWaterMark size={3} /> */}
        {/* <React.StrictMode> */}
        <Routers />
        {/* </React.StrictMode> */}
      </PersistGate>
    </Provider>
  </ConfigProvider>
)

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
